####
# 
# (C) Copyright 2019. All rights reserved.
#
# Author: ShenYongchen (shenyczz@163.com)
# 
###############################################################################
# 
# 版本
cmake_minimum_required(VERSION 3.8...3.12 FATAL_ERROR)

# 策略
foreach(policy CMP0068 CMP0071 CMP0083)
  if(POLICY ${policy})
    cmake_policy(SET ${policy} NEW)
  endif()
endforeach()

# 项目
project(XYZ)

# 测试
include(CTest)
enable_testing()

# 打包
# set(CPACK_PROJECT_NAME ${PROJECT_NAME})
# set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# include(CPack)

#------------------------------------------------------------------------------
# 模块
set(_my_cmake_dir_ "${CMAKE_CURRENT_LIST_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${_my_cmake_dir_}")

#------------------------------------------------------------------------------
# 选项
option(BUILD_SHARED_LIBS "Build shared library." ON)
